<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>

<!DOCTYPE HTML>
<html>
<head>
    <base href="<%=basePath%>">

    <title>学生参加列表</title>
    <link rel="stylesheet" type="text/css" href="<%=basePath%>css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="<%=basePath%>css/theme.css">
    <script src="<%=basePath%>js/jquery.js" type="text/javascript"></script>
</head>

<body class="content1">
<script>
    $('#a_leader_txt', parent.document).html('学生参加列表');
</script>
<div class="container-fluid">
    <div class="row-fluid">


        <div class="well">
            <div>共<c:out value="${fn:length(stuJoinList)}" />条记录</div>
            <table class="table">
                <thead>
                <tr>
                    <th>
                        试卷名称
                    </th>
                    <th>
                        学生账号
                    </th>
                    <th>
                        学生姓名
                    </th>
                    <th>
                        正确答题数
                    </th>
                </tr>
                </thead>
                <tbody>
                <c:forEach items="${stuJoinList}" var="item">
                    <tr>
                        <td>
                                ${item.pname}
                        </td>
                        <td>
                                ${item.username}
                        </td>
                        <td>
                                ${item.usertruename}
                        </td>
                        <td>
                                ${item.rightcount}
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
</div>
</body>
</html>
